/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tkgarment.system.factory;

import com.tkgarment.system.dao.AddressDAO;
import com.tkgarment.system.dao.BloodTypeDAO;
import com.tkgarment.system.dao.DataFileDAO;
import com.tkgarment.system.dao.DepartmentDAO;
import com.tkgarment.system.dao.EmpStatusDAO;
import com.tkgarment.system.dao.EmpTypeDAO;
import com.tkgarment.system.dao.EmployeeDAO;
import com.tkgarment.system.dao.GraduationDAO;
import com.tkgarment.system.dao.HistoryDAO;
import com.tkgarment.system.dao.HospitalDAO;
import com.tkgarment.system.dao.MaritalDAO;
import com.tkgarment.system.dao.NationalityDAO;
import com.tkgarment.system.dao.ProvinceDAO;
import com.tkgarment.system.dao.ReligionDAO;
import com.tkgarment.system.dao.ReportDAO;
import com.tkgarment.system.dao.SexTypeDAO;
import com.tkgarment.system.dao.TitleDAO;
import com.tkgarment.system.db.Database;

/**
 *
 * @author zraj
 */
public class DAOFactory {
    
    public static Database creatConnection(){
        return new Database();
    }
    
    public static EmpTypeDAO createEmpTypeDao(){
        return new EmpTypeDAO();
    }
    
    public static DepartmentDAO createDepartmentDao(){
        return new DepartmentDAO();
    }
    
    public static TitleDAO createTitleDao()
    {
        return new TitleDAO();
    }
    
    public static BloodTypeDAO createBloodTypeDao(){
        return new  BloodTypeDAO();
    }
    
    public static EmpStatusDAO createEmpStatusDao()
    {
        return new EmpStatusDAO();
    }
    
    public static GraduationDAO createGraduationDao(){
        return new GraduationDAO();
    }
    
    public static MaritalDAO createMaritalDao()
    {
        return new MaritalDAO();
    }
    
    public static NationalityDAO createNationalityDao()
    {
        return new NationalityDAO();
    }
    
    public static ReligionDAO createReligionDao()
    {
        return new ReligionDAO();
    }
    
    public static   SexTypeDAO createSexTypeDao()
    {
        return new SexTypeDAO();
    }
    
    public static  ProvinceDAO createProvincceDao()
    {
        return new ProvinceDAO();
    }

    public static EmployeeDAO createEmployeeDao() {
        return new EmployeeDAO();
    }
    
    public static AddressDAO  createAddressDao() {
        return new AddressDAO();
    }
    
    public static  HospitalDAO createHospitalDao(){
        return new HospitalDAO();
    }

    public static HistoryDAO createHistoryDao() {
        return new HistoryDAO();
    }

    public static DataFileDAO createDataFileDao() {
        return new DataFileDAO();
    }

    public static ReportDAO createReportDao() {
       return new ReportDAO();
    }
    
    
}
